import React, { Component } from 'react'
import { connect } from 'dva'
import styles from './style.less'
import LoginForm from './components/LoginForm'
import Frame from '@/components/Frame'
import { router } from 'umi'
import { setAuthority } from '@/utils/authority'
import picTitle from '@/assets/aiguo-logo.png'

class Login extends Component {
  componentDidMount() {
    setAuthority(['admin'])
  }

  render() {
    return (
      <Frame
        frame={{
          borderRadius: '10px',
          backgroundColor: 'transparent',
          boxShadow: 'none'
        }}
      >
        <div className={styles.layouts}>
          {/* <div className={styles.frameleft}>
            <img
              style={{
                width: 535,
                height: 546,
                objectFit: 'none'
              }}
              src={loginTop}
            />
          </div> */}
          <div className={styles.frameright}>
            <div style={{ textAlign: 'center' }}>
              {/* <div className={styles.denglu}>88租运营管理平台</div> */}
              <img className={styles.logoImg} src={picTitle} alt="图片标题" />
            </div>
            <LoginForm />
          </div>
        </div>
      </Frame>
    )
  }
}

export default Login
